package com.gem.springbootdemo.entity;

import lombok.*;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
@ToString
public class Goods {
    private Integer id;
    private Integer catoryId;
    private String name;
    private Float price;
    private String pic;
    private Date createtime;
    private String detail;

    //一个商品对应一个类比
    private GoodsCatory goodsCatory;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCatoryId() {
        return catoryId;
    }

    public void setCatoryId(Integer catoryId) {
        this.catoryId = catoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public GoodsCatory getGoodsCatory() {
        return goodsCatory;
    }

    public void setGoodsCatory(GoodsCatory goodsCatory) {
        this.goodsCatory = goodsCatory;
    }
}